﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Data.SqlClient;
using System.Web;
using System.IO;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserControl_ControlLogin : System.Web.UI.UserControl
{
    //ClassExecute.ClassExecute dt;
    //string error = "";
    //string str = webapp4U.Configuration.CurrentConnectionString;
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    //protected void btLogin_Click(object sender, EventArgs e)
    //{
    //    dt = new ClassExecute.ClassExecute();
    //    string kq = dt.GetDataDepend(str, "k_checkLogin", CommandType.StoredProcedure, ref error,
    //        new SqlParameter("@UserName", txtUsername.Text),
    //        new SqlParameter("@Password", dt.GetMd5Sum(txtPass.Text)));
    //    if (kq != "notauthentication")
    //    {
    //        //DataTable db = dt.Get_Data_DataTable(str, ref error, "k_GetMenuManagement", CommandType.StoredProcedure,
    //           // new SqlParameter("@TypeID", kq));
    //        if (Session["module"] != null)
    //        {
    //            Session["module"] = null;
    //        }
    //        if (Session["user"] != null)
    //        {
    //            Session["user"] = null;
    //        }
    //        //Session["module"] = db;
    //        Session["user"] = txtUsername.Text;
    //        Session["UserType"] = kq;
    //        Response.Redirect(webapp4U.Globals.ApplicationPath + "Page/ManagementSystem/Default.aspx",true);
    //    }
    //    else
    //    {

    //    }
    //}
}